package org.dromara.datacheck.domain.bo;

import io.github.linpeilie.annotations.AutoMapper;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.datacheck.domain.JstExcludeMaterial;

/**
 * 聚水潭需要排除的物料业务对象 jst_exclude_material
 *
 * @author 刘武贵
 * @date 2024-09-08
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = JstExcludeMaterial.class, reverseConvertGenerate = false)
public class JstExcludeMaterialBo extends BaseEntity {

    /**
     * id
     */
    @NotNull(message = "id不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * id集合
     */
    private String ids;

    /**
     * 编码
     */
    @NotBlank(message = "编码不能为空", groups = { AddGroup.class, EditGroup.class })
    private String code;

    /**
     * 名称
     */
    @NotBlank(message = "名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String name;

    /**
     * 数据状态（0 重新审核，1 暂存，2 已审核， 3 审核中，4 新建）
     */
    @NotBlank(message = "数据状态（0 重新审核，1 暂存，2 已审核， 3 审核中，4 新建）不能为空", groups = { AddGroup.class, EditGroup.class })
    private String dataStatus;

    /**
     * 禁用状态（0 否 1是）
     */
    @NotBlank(message = "禁用状态（0 否 1是）不能为空", groups = { AddGroup.class, EditGroup.class })
    private String forbiddenStatus;


}
